def reverseWord(s: str):
    tokens = s.split(' ')
    tokens.reverse()
    return ' '.join(tokens)


print(reverseWord('I am a student.'))